﻿Calendar.LANG("cn", "中文", {

    fdow: 0,                // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.

    goToday: "今天",

    today: "今天",         // appears in bottom bar

    wk: "周",

    weekend: "0,6",         // 0 = Sunday, 1 = Monday, etc.

    AM: "AM",

    PM: "PM",

    mn: ["一月",
               "二月",
               "三月",
               "四月",
               "五月",
               "六月",
               "七月",
               "八月",
               "九月",
               "十月",
               "十一月",
               "十二月"],

    smn: ["一月",
              "二月",
              "三月",
              "四月",
              "五月",
              "六月",
              "七月",
              "八月",
              "九月",
              "十月",
              "十一月",
              "十二月"],

    dn: ["日",
               "一",
               "二",
               "三",
               "四",
               "五",
               "六",
               "日"],

    sdn: ["日",
                "一",
                "二",
                "三",
                "四",
                "五",
                "六",
                "日"]

});
var _cal = new Calendar({
	showTime: false,
	onSelect: function () { this.hide() }
});
function calendar(trigger, inputField, dateFormat) {
	inputField = inputField || trigger;
	dateFormat = dateFormat || "%Y-%m-%d";
	_cal.manageFields(trigger, inputField, dateFormat);
}